
import 'Definition.dart';

class GroupModel extends Definition {
  
	/// 编号
	int? id;
	/// 分组名称
	String? group_name;
	/// 分组唯一编号
	String? group_no;
	/// 分组类型
	/// 枚举值: GLOBAL,INTEREST,PERSONAL
	String? group_type;
	/// 创建用户ID
	int? created_by;
	/// 创建时间
	String? created_dt;
	/// 更新时间
	String? updated_dt;
	/// 全部用户数
	int? total_user_count;
	/// 待办事项数量
	int? running_todo_count;
	/// 全部事项数量
	int? total_todo_count;

  @override
  Map<String, dynamic> toJson() {
    return {
			"id": id,
			"group_name": group_name,
			"group_no": group_no,
			"group_type": group_type,
			"created_by": created_by,
			"created_dt": created_dt,
			"updated_dt": updated_dt,
			"total_user_count": total_user_count,
			"running_todo_count": running_todo_count,
			"total_todo_count": total_todo_count,
    };
  }

  @override
  void fromJson(Map<String, dynamic> json) {
		id = json["id"];
		group_name = json["group_name"];
		group_no = json["group_no"];
		group_type = json["group_type"];
		created_by = json["created_by"];
		created_dt = json["created_dt"];
		updated_dt = json["updated_dt"];
		total_user_count = json["total_user_count"];
		running_todo_count = json["running_todo_count"];
		total_todo_count = json["total_todo_count"];
  }
  
}
  